<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>1111</title>
</head>
<body>
<div id="app">
    <input type="button" @click="test()" value="111"/>
    <button @click="getPort()">控制台输出 当前端口号</button>
    <input type="text" placeholder="???"/>
</div>

<script src="js/axios.js"></script>
<script src="js/vue.js"></script>
<script>
    const APP = new Vue({
        el: "#app",
        methods: {
            test() {
                console.log("test Calling...")
            },
            async getPort() {
                let {data: result} = await axios.get("/getPort")
                console.log(result)

            }
        }

    })

    console.log("script....")
    axios.defaults.baseURL = "http://127.0.0.1:8091"


</script>
</body>
</html>
